#define _CRT_SECURE_NO_WARNINGS 1
#include<string>
#include<iostream>
using namespace std;


template<typename T>
void Swap(T& t1, T& t2)
{
	T tmp = t1;
	t1 = t2;
	t2 = tmp;
}




int main()
{
	string s1("abd");
	string s2(6,'6');
	cout << s1 << endl;
	cout << s2 << endl;
	s1.push_back('8');
	cout << s1 << endl;
	s1.append("eeeqq");
	cout << s1 << endl;
	s1 += s2;
	cout << s1 << endl;
	Swap(s1, s2);
	cout << s1 << endl;
	cout << s2 << endl;




	return 0;
}